package com.xbongbong.paas.service.ssl;

import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

/**
 * SSL加密请求的验签
 * @author 章华隽
 * @mail nefeed@163.com
 * @time 2018-01-11 14:17
 */
public class MyX509TrustManager implements X509TrustManager {

    @Override
    public void checkClientTrusted(X509Certificate[] arg0, String arg1)
            throws CertificateException {
        // 非特殊加密SSL请求不需要处理

    }

    @Override
    public void checkServerTrusted(X509Certificate[] arg0, String arg1)
            throws CertificateException {
        // 非特殊加密SSL请求不需要处理

    }

    @Override
    public X509Certificate[] getAcceptedIssuers() {
        // 非特殊加密SSL请求不需要处理
        return null;
    }
}